package com.woniu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

@SpringCloudApplication
@MapperScan("com.woniu.outlet.dao")
@EnableFeignClients
public class ErpSystemManagementApplication {

    public static void main(String[] args) {
        SpringApplication.run(ErpSystemManagementApplication.class, args);
    }
    //密码加密
    @Bean
    public PasswordEncoder getPassword(){
        return new BCryptPasswordEncoder();
    }
}
